/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function checkItems() {
  var r,l;
  if (!document.getElementById) return;
  var tb = document.getElementsByTagName("table");
  for (r=0; r < tb.length; r++) {
      if (r % 2 == 1) {
            tr=tb[r].getElementsByTagName("tr");
            for (l=0; l<tr.length; l++) {
                tr[l].setAttribute('class', 'alt');
                tr[l].setAttribute('className', 'alt');
            }
      }
  }
}

function addLoadEvent(func) {
    var onloadBak=window.onload;
    if (typeof window.onload!='function') { window.onload=func; }
    else {
        window.onload= function() {
            onloadBak();
            func();
        }
    }
}

addLoadEvent(checkItems);